package restless.core.gameObjs {
	
	import flash.display.Sprite;
	import flash.geom.Vector3D;
	import restless.core.interfaces.IGrid;
	
	/**
	 * ...
	 * @author Jordan Laine
	 */
	public class RLEGridObj extends RLEGameObj implements IGrid {
		
		private var gridData:Vector3D = new Vector3D();
		
		// col = x, row = Y
		
		public function RLEGridObj() {
			
		}
		
		public function gridPosition(col:Number, row:Number):void {
			gridData.x = col;
			gridData.y = row;
		}
		
		public function gridCellSize(width:Number, height:Number):void {
			gridData.w = width;
			gridData.z = height;
		}
		
		public function set col(num:Number):void {
			gridData.x = num;
		}
		
		public function get col():Number {
			return gridData.x;
		}
		
		public function set row(num:Number):void {
			gridData.y = num;
		}
		
		public function get row():Number {
			return gridData.y;
		}
		
		public function get tileWidth():Number {
			return gridData.w;
		}
		
		public function set tileWidth(num:Number):void {
			gridData.w = num;
		}
		
		public function get tileHeight():Number {
			return gridData.z;
		}
		
		public function set tileHeight(num:Number):void {
			gridData.z = num;
		}
		
		override public function dispose():void {
			gridData = null;
			super.dispose();
		}
		
	}

}
